# -*- coding: utf-8 -*-
from models import SiteCfg

def current_cfg(request): 
    if hasattr(request, 'current_cfg'): 
        print "tiene current_cfg"
        return {'current_cfg':request.current_cfg }
    else:
        return {'current_cfg':SiteCfg.current_cfg() }
